{% extends 'front/page/blog/blog_list_base.html' %}

{% block title %}求助博客{% endblock %}

{% block right %}<div id="posts-container"></div>{% endblock %}



{% block script %}
   <script>



const postsContainer = document.getElementById('posts-container');
Fetch('{{  url_for('postslistbysort') }}','get',{'sort':'求助'}, res => {
    if (res.status === 'success') {
        res.data.forEach(pack => {
            postsContainer.innerHTML += RightItem(post_detail_url.replace('0',pack.pid), '{{ url_for('static',filename='img/default.png') }}', '#', pack.title, pack.author, pack.time, pack.likes,pack.sort);
        });
    }
});


</script>
{% endblock %}
